package com.itheima.service;

import com.github.pagehelper.Page;
import com.itheima.pojo.Picture;
import com.itheima.vo.PictureVO;

import java.util.List;

public interface PictureService{
    /**
     * 添加图片
     * @param pictureVOList
     * @return
     */
    String addPicture(List<PictureVO> pictureVOList);

    /**
     * 删除图片
     * @param pictureVO
     * @return
     */
    String deletePicture(PictureVO pictureVO);

    /**
     * 编辑图片
     * @param pictureVO
     * @return
     */
    String editPicture(PictureVO pictureVO);

    /**
     * 获取图片列表
     * @param pictureVO
     * @return
     */
    Page<Picture> getPageList(PictureVO pictureVO);

    /**
     * 通过Uid设置为封面
     *
     * @param pictureVO
     * @return
     */
    String setPictureCover(PictureVO pictureVO);
}
